//
//  DwtExchangeFrateCell.m
//  生活小助手
//
//  Created by dwt on 14-8-10.
//  Copyright (c) 2014年 lxz. All rights reserved.
//

#import "DwtExchangeFrateCell.h"
#import "DwtExchangeFrateData.h"
@implementation DwtExchangeFrateCell

-(void)setExchangeFrateData:(DwtExchangeFrateData *)exchangeFrateData{
    
    _exchangeFrateData=exchangeFrateData;
    
    self.currencyLable.text=[NSString stringWithFormat:@"%@",exchangeFrateData.currency];
    self.closeLable.text=[NSString stringWithFormat:@"最新价:%@",exchangeFrateData.closePri];
    self.diffPerLable.text=[NSString stringWithFormat:@"涨跌%%:%@",exchangeFrateData.diffPer];
    self.diffAmoLable.text=[NSString stringWithFormat:@"涨跌金额:%@",exchangeFrateData.diffAmo];
    self.openPriLable.text=[NSString stringWithFormat:@"开盘价:%@",exchangeFrateData.openPri];
    self.highPicLable.text=[NSString stringWithFormat:@"最高价:%@",exchangeFrateData.highPic];
    self.lowPicLable.text=[NSString stringWithFormat:@"最低价:%@",exchangeFrateData.lowPic];
    self.rangeLable.text=[NSString stringWithFormat:@"震幅%%:%@",exchangeFrateData.range];
    self.buyPicLable.text=[NSString stringWithFormat:@"买入价:%@",exchangeFrateData.buyPic];
    self.sellPicLable.text=[NSString stringWithFormat:@"卖出价:%@",exchangeFrateData.range];

    self.dataTimeLable.text=[NSString stringWithFormat:@"数据时间:%@",exchangeFrateData.datatime];

}

+ (instancetype)exchangeFrateCell
{
    return [[[NSBundle mainBundle] loadNibNamed:@"DwtExchangeFrateCell" owner:nil options:nil] lastObject];
}
@end
